<?php
$a =  file_get_contents('/var/www/html/open/conf/wsdl.le.je.ll');
echo $a ;exit;
$Inside= new SoapClient(null,array(
        "location" => "http://localhost/open/openService/pft_insideMX.php",
        "uri" => "www.16u.com?ac_16u=16ucom|pw_16u=c33367701511b4f6020ec61ded352059|auth_16u=true")
);

$sms = 1;  //0发短信。1不发短信
$submit = $Inside->Group_Order_Submit(
		'113','11276','23355','2015-11-11 00:00:00','2015-10-15 23:07:50',
		'400','1',0,'测试pzp','15959110796',
		'','617993','113',3,0,
		'','','',0,0,
		$sms		
	);
logfile($submit,'order');
print_r($submit);

function logfile($word, $path){
	$filepath= '/var/www/html/new/d/module/api/submit_order/'.$path.'.txt';
	if(file_exists($filepath)){
		$word = date("Y-m-d H:i:s")."|".$word;
		// $word = mb_convert_encoding($word, 'GBK', 'UTF-8');
		$maxsize  = 1024*1024*10;
		$filesize = filesize($filepath);
		$filetype = end(explode(".",$filepath));
		$filename = substr($filepath,0,strpos($filepath,'.'));
		if($filesize>$maxsize)
		{
			rename($filepath, $filename.'_'.date('YmdHis').'.'.$filetype);
			$handler=fopen($filepath,'w');
			flock($handler, LOCK_EX) ;
			fwrite($handler,"\n".$word);
			flock($handler, LOCK_UN);
			fclose($handler);
		}
		else
		{
			$fp = fopen($filepath,"a");
			flock($fp, LOCK_EX);
			fwrite($fp,$word."\n");
			flock($fp, LOCK_UN);
			fclose($fp);
		}
	}else{
		$fp = fopen($filepath,"a");
		flock($fp, LOCK_EX);
		fwrite($fp,$word."\n");
		flock($fp, LOCK_UN);
		fclose($fp);
	}
}
?> 53d6\u7968\u65b9\u5f0f\u3011\u8bf7\u5728\u6709\u6548\u671f\u5185\u5230\u8001\u9152\u535a\u7269\u9986\u552e\u7968\u5904\u5237\u624b\u673a\u77ed\u4fe1\u4e8c\u7ef4\u7801\u53d6\u7968\u3002\r\n\r\n\u3010\u9000\u6539\u8bf4\u660e\u3011\u5982\u672a\u53d6\u7968\uff0c\u53ef\u968f\u65f6\u5728\u7f8e\u56e2\u540e\u53f0\u7533\u8bf7\u5168\u989d\u9000\u6b3e\u3002\u6682\u4e0d\u652f\u6301\u90e8\u5206\u9000\u6b3e\uff0c\u8ba2\u5355\u6570\u91cf\u53d8\u66f4\u8bf7\u9000\u8ba2\u91cd\u65b0\u8ba2\u3002\u53d6\u7968\u5373\u4ee3\u8868\u6d88\u8d39\uff0c\u53d6\u7968\u540e\u4e0d\u652f\u6301\u9000\u6b3e\u3002\r\n\r\n\u3010\u4f18\u60e0\u653f\u7b56\u3011\r\n\u6682\u65e0","imageTextNote":"\u3010\u666f\u70b9\u7b80\u4ecb\u3011\u5373\u58a8\u8001\u9152\u535a\u7269\u9986\u521b\u5efa\u4e8e2009\u5e74\uff0c\u662f\u4e2d\u56fd\u5317\u65b9\u552f\u4e00\u7684\u9ec4\u9152\u4e13\u4e1a\u535a\u7269\u9986\u3002\u9762\u79ef2000\u5e73\u7c73\uff0c\u73b0\u6709\u5458\u5de523\u4eba\uff0c\u4e3b\u8981\u8bbe\u7f6e\u7efc\u5408\u529e\u3001\u670d\u52a1\u90e8\u3001\u8d22\u52a1\u90e8\u7b49\u90e8\u95e8\uff0c\u85cf\u54c1\u7ea6200\u4e2a\uff0c\u662f\u7701\u7ea7\u5de5\u4e1a\u65c5\u6e38\u793a\u8303\u70b9\u3001\u56fd\u5bb6AAA\u7ea7\u65c5\u6e38\u666f\u533a\uff0c\u88ab\u8bc4\u9009\u4e3a\u201c\u5c71\u4e1c\u5341\u5927\u6700\u4f73\u6587\u5316\u65c5\u6e38\u666f\u533a\u201d\u3001\u201c\u5c71\u4e1c\u65c5\u6e38\u63a5\u5f85\u7528\u9152\u5341\u5927\u63a8\u8350\u54c1\u724c\u201d\u3002\u5373\u58a8\u8001\u9152\u535a\u7269\u9986\u4ee5\u5373\u58a8\u8001\u9152\u56db\u5343\u591a\u5e74\u7684\u5386\u53f2\u6587\u5316\u4e3a\u4e3b\u7ebf\uff0c\u901a\u8fc7\u5927\u91cf\u7684\u5386\u53f2\u6587\u7269\u3001\u5b9e\u7269\uff0c\u5168\u9762\u5c55\u73b0\u4e86\u5373\u58a8\u8001\u9152\u7684\u60a0\u4e45\u5386\u53f2\u3001\u707f\u70c2\u6587\u5316\u3001\u72ec\u7279\u5de5\u827a\u3002\u535a\u7269\u9986\u5171\u5206\u4e3a\u4e03\u5927\u5c55\u533a\uff0c\u5206\u522b\u4ee5\u201c\u60a0\u4e45\u5386\u53f2\u2022\u707f\u70c2\u6587\u5316\u201d\u3001\u201c\u72ec\u7279\u5de5\u827a\u2022\u5343\u5e74\u4e00\u8109\u201d\u3001\u201c\u795e\u6c14\u743c\u6d46\u2022\u8425\u517b\u9152\u738b\u201d\u3001\u201c\u5373\u58a8\u8001\u9152\u2022\u9ec4\u9152\u5317\u5b97\u201d\u3001\u201c\u6bb7\u5207\u5173\u6000\u2022\u5386\u53f2\u76db\u8a89\u201d\u3001\u201c\u7ee7\u627f\u521b\u65b0\u2022\u524d\u7a0b\u4f3c\u9526\u201d\u3001\u201c\u5343\u5e74\u8001\u9152\u2022\u767e\u5e74\u9152\u7a96\u201d\u4e3a\u4e3b\u9898\uff0c\u4e3b\u8981\u5305\u62ec\u5386\u53f2\u6587\u5316\u4ecb\u7ecd\u3001\u4f20\u7edf\u5de5\u827a\u5c55\u793a\u3001\u73b0\u573a\u4f53\u9a8c\u54c1\u5c1d\u7b49\u3002\u5373\u58a8\u8001\u9152\u535a\u7269\u9986\u4e4b\u65c5\u662f\u6c11\u65cf\u5de5\u4e1a\u4e4b\u65c5\uff0c\u662f\u5386\u53f2\u6587\u5316\u4e4b\u65c5\uff0c\u4e5f\u662f\u9152\u6587\u5316\u4e4b\u65c5\uff0c\u5b83\u6dcb\u6f13\u5c3d\u81f4\u5730\u5c55\u793a\u4e86\u5373\u58a8\u8001\u9152\u6240\u5177\u6709\u7684\u72ec\u7279\u9152\u97f5\u3002\u3010\u666f\u70b9\u7279\u8272\u3011\u3010\u666f\u70b9\u5305\u542b\u3011"},"needBook":0,"aheadHour":null,"canRefund":1,"refundRatio":0,"startTime":"2012-12-11 00:00:00","endTime":"2016-12-31 23:59:59","pics":{"urls":["http:\/\/images.12301.cc\/123628\/20151201\/14489604401297_thumb.jpg"]},"visitorRequire":{"firstVisitor":{"name":true,"pinyin":false,"mobile":true,"address":false,"postCode":false,"credentials":false},"otherVisitor":{"name":false,"pinyin":false,"mobile":false,"address":false,"postCode":false,"credentials":false}}}]}';
$arr = json_decode($txt,true);
print_r($arr);
?> 